Skip to content

Instantly share code, notes, and snippets.

@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active November 21, 2024 05:24
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@edwhad
edwhad / 1password_ssh_agent_wsl_multiple_github_accts.md
Last active November 21, 2024 05:24
How I configure multiple GitHub accounts using the 1password SSH agent (and working in WSL!)

How I use 1Password to manage SSH keys for multiple GitHub accounts (including on WSL)

If you don't care about why or how this works, you can skip right down to Setup Steps

A little bit of background

These are the considerations I tried to satisfy while researching this solution:

  1. I prefer not to generate new SSH keys for every machine/VM/environment where I use git or SSH. I end up with tons of keys per GitHub account or remote server, and I don't remember which is which.
  2. I want to keep private keys secured somewhere that is not directly accessible on the filesystem. Also try to avoid copying private keys around at all costs.
@balmeida-nokia
balmeida-nokia / wsl2_ciscoanyconnect_workaround.md
Last active November 21, 2024 05:20 — forked from pyther/wsl2_ciscoanyconnect_workaround.md
WSL 2 Cisco AnyConnect Networking Workaround

WSL 2 Cisco AnyConnect Networking Workaround

Overview

WSL 2 uses a Hyper-V Virtual Network adapter. Network connectivity works without any issue when a VPN is not in use. However when a Cisco AnyConnect VPN session is established Firewall Rules and Routes are added which breaks connectivity within the WSL 2 VM. This issue is tracked WSL/issues/4277

Below outline steps to automatically configure the Interface metric on VPN connect and update DNS settings (/etc/resolv.conf) on connect/disconnect.

Acknowledges

@hollance
hollance / StateVariableFilter.h
Created August 26, 2023 16:26
Cytomic SVF implementation in C++
#pragma once
#include <cmath>
/**
State variable filter (SVF), designed by Andrew Simper of Cytomic.
http://cytomic.com/files/dsp/SvfLinearTrapOptimised2.pdf
The frequency response of this filter is the same as of BZT filters.
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active November 21, 2024 05:17
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@bizz84
bizz84 / update-android-project.sh
Created November 18, 2024 09:17
Script to update Gradle, Java and other Android project settings in a Flutter project
#!/bin/bash
# Update Gradle, Java and other Android project settings in a Flutter project
# See: https://gradle.org/releases/
DESIRED_GRADLE_VERSION="8.9"
# Build errors often show the required Java version
DESIRED_JAVA_VERSION="17"
# See: https://developer.android.com/ndk/downloads
DESIRED_NDK_VERSION="27.0.12077973"
# The minimum Android SDK version
https://www.googleapis.com/drive/v3/files/1wHUfbeOqy7CN4asOGfkMyizDcDw-YgHn/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | Drunkers Pack 2.zip | 152759316
https://www.googleapis.com/drive/v3/files/1P-Ufvf30Dl2pC8micEht5s6OKwFsVteq/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | SMG Community Revival Pack.zip | 152802682
https://www.googleapis.com/drive/v3/files/1Dwpe9odduzsX0zYShZXAH-QBVuDanVxU/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | DDR Tom's Mix 6.zip | 152090480
https://www.googleapis.com/drive/v3/files/1-hZUD-cR5KHwDcZnxtCGBkiJlUhlSFpZ/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | Rikame's Simfiles 4.zip | 152233756
https://www.googleapis.com/drive/v3/files/1eTh6-XqD466n2eyi98xXbJo_YoykLZhv/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | M&M's Flavour Sensation.zip | 151948513
https://www.googleapis.com/drive/v3/files/11uoooO4koagGWidgm1RBm6WuVUzAeb7Y/?key=AIzaSyDLR4VS63Vx3Odfq5rDtRhqmDsDSvxyL9w&alt=media | Metal Pad Pack.zip | 152663218
https://www.
import requests
import sys
import json
def waybackurls(host, with_subs):
if with_subs:
url = 'http://web.archive.org/cdx/search/cdx?url=*.%s/*&output=json&fl=original&collapse=urlkey' % host
else:
url = 'http://web.archive.org/cdx/search/cdx?url=%s/*&output=json&fl=original&collapse=urlkey' % host

Ultimate Beginner's Guide to Proxmox GPU Passthrough

mirror of The Ultimate Beginner's Guide to GPU Passthrough (Proxmox, Windows 10) by /u/cjalas

>Welcome all, to the first installment of my Idiot Friendly tutorial series! I'll be guiding you through the process of configuring GPU Passthrough for your Proxmox Virtual Machine Guests. This guide is aimed at beginners to virtualization, particularly for Proxmox users. It is intended as an overall guide for passing through a GPU (or multiple GPUs) to your Virtual Machine(s). It is not intended as an all-exhaustive how-to guide; however, I will do my best to provide you with all the necessary resources and sources for the passthrough process, from start to finish. If something doesn't work properly, please check /r/Proxmox, /r/Homelab, /r/VFIO, or

@stevendborrelli
stevendborrelli / bluesky.md
Last active November 21, 2024 05:08
Bluesky Starter Packs